package com.lcq.demo.common.converter;

import com.lcq.demo.entity.dto.NewsDTO;
import com.lcq.demo.entity.po.News;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 240701005
 */
@Mapper
public interface NewsDTOConverter {

    NewsDTOConverter INSTANCE = Mappers.getMapper(NewsDTOConverter.class);

    News convertDtoToPo(NewsDTO newsDTO);

    List<News> convertDtoToPo(List<NewsDTO> newsDTOList);

}
